Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NContinuousMediaExporter<TContent> Class / SaveToFileAsync Method / SaveToFileAsync(NFile,NRectangle,Double,NImageEncoderSettings) Method
The file to save to.
Bounding box of the area to be exported.
Resolution of the image.
Image encoder settings. Can be null.


In This Topic
    SaveToFileAsync(NFile,NRectangle,Double,NImageEncoderSettings) Method
    In This Topic
    Saves the given bounds of the document to the specified file.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Function SaveToFileAsync( _
       ByVal file As NFile, _
       ByVal bounds As NRectangle, _
       ByVal dpi As System.Double, _
       ByVal encoderSettings As NImageEncoderSettings _
    ) As NPromise(Of NUndefined)
    'Usage
     
    
    Dim instance As NContinuousMediaExporter(Of TContent)
    Dim file As NFile
    Dim bounds As NRectangle
    Dim dpi As System.Double
    Dim encoderSettings As NImageEncoderSettings
    Dim value As NPromise(Of NUndefined)
     
    value = instance.SaveToFileAsync(file, bounds, dpi, encoderSettings)
    public virtual NPromise<NUndefined> SaveToFileAsync( 
       NFile file,
       NRectangle bounds,
       System.double dpi,
       NImageEncoderSettings encoderSettings
    )

    Parameters

    file
    The file to save to.
    bounds
    Bounding box of the area to be exported.
    dpi
    Resolution of the image.
    encoderSettings
    Image encoder settings. Can be null.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also